package com.gollum.system.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 登录请求
 *
 * @author Herther
 * @version 1.0.0
 * @createTime 2022年08月27日 22:39:00
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "登录请求对象")
public class LoginRequest {

    @ApiModelProperty(value = "用户名",name = "username")
    @NotBlank(message = "用户名有误")
    private String username;

    @ApiModelProperty(value = "密码",name = "password")
    @NotBlank(message = "密码有误")
    private String password;

    @ApiModelProperty(value = "验证码code",name = "code")
    private String code;


    @ApiModelProperty(value = "验证码token",name = "token")
    private String token;

}
